﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestService.Contract.Data
{
    /// <summary>
    /// 上传结果实体
    /// </summary>
    public class UploadFileResult
    {
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool IsSuccess { get; set; }

        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// 文件信息
        /// </summary>
        public UploadFileInfo Data { get; set; }
    }

    /// <summary>
    /// 上传文件信息
    /// </summary>
    public class UploadFileInfo
    {
        /// <summary>
        /// 文件id
        /// </summary>
        public int FileId { get; set; }
        /// <summary>
        /// 文件大小
        /// </summary>
        public long FileSize { get; set; }

        /// <summary>
        /// 原始文件名称
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        /// 文件路径Url
        /// </summary>
        public string FileUrl { get; set; }

        /// <summary>
        /// 文件物理路径
        /// </summary>
        public string FullFileName { get; set; }
    }

    /// <summary>
    /// 下载文件结果实体
    /// </summary>
    public class DownloadFileResult
    {
        /// <summary>
        /// 文件名
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        public long FileSize { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        public string ContentType { get; set; }

        /// <summary>
        /// 文件流
        /// </summary>
        public byte[] Data { get; set; }
    }
}
